﻿using Demo.AttachFileService.Mongo.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo.AttachFileService.Models
{
    public class AlarmInfo : IEntity<int>
    {
        public int Id { get; set; }
        /// <summary>
        /// 终端分配的报警编号
        /// </summary>
        public string AlarmId { get; set; }
        /// <summary>
        /// 平台分配的报警编号
        /// </summary>
        public string AlarmNo { get; set; }

        /// <summary>
        /// 附件数量
        /// </summary>
        public uint AttachCount { get; set; }

        /// <summary>
        /// 终端手机号
        /// </summary>
        public string TerminalPhoneNo { get; set; }

        public DateTime AlarmTime { get;  set; }

        public byte SN { get;  set; }
 
        public object[] GetKeys()
        {
            return new object[] { Id };
        }
    }
}
